package view {
	import view.components.ResourceStatusConsole;	
	import view.components.ApplicationHeader;	
	
	import org.puremvc.as3.multicore.patterns.mediator.Mediator;	
	
	/**
	 * @author Darshan Sawardekar
	 */
	public class StartupSimpleDemoMediator extends Mediator {
		
		static public const NAME:String = "StartupSimpleDemoMediator";
		
		public function StartupSimpleDemoMediator(viewComponent:StartupSimpleDemo) {
			super(NAME, viewComponent);
		}
		
		public function get startupSimpleDemo():StartupSimpleDemo {
			return viewComponent as StartupSimpleDemo;
		}
		
		override public function onRegister():void {
			facade.registerMediator(new ApplicationHeaderMediator(startupSimpleDemo.applicationHeader as ApplicationHeader));
			facade.registerMediator(new ResourceStatusConsoleMediator(startupSimpleDemo.resourceStatusConsole as ResourceStatusConsole));
		} 
		
	}
}
